package com.bootdo.repertory.service.impl;

import com.bootdo.repertory.dao.InventoryDao;
import com.bootdo.repertory.domain.InventoryDO;
import com.bootdo.repertory.service.InventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class InventoryServiceImpl implements InventoryService {
	@Autowired
	private InventoryDao inventoryDao;
	
	@Override
	public InventoryDO get(Integer id){
		return inventoryDao.get(id);
	}
	
	@Override
	public List<InventoryDO> list(Map<String, Object> map){
		return inventoryDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return inventoryDao.count(map);
	}
	
	@Override
	public int save(InventoryDO inventory){
		return inventoryDao.save(inventory);
	}
	
	@Override
	public int update(InventoryDO inventory){
		return inventoryDao.update(inventory);
	}
	
	@Override
	public int remove(Integer id){
		return inventoryDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return inventoryDao.batchRemove(ids);
	}

	@Override
	public InventoryDO getInfo(InventoryDO inventoryDO) {
		return inventoryDao.getInfo(inventoryDO);
	}

}
